import request from '@/utils/request'

// 获取热搜列表
export function getHotListApi(type) {
  return request({
    url: `/api/getHotSearch/${type}`,
    method: 'get'
  })
}

// 站内综合搜索
export function comprehensiveSearchApi(params) {
  return request({
    url: '/api/search/comprehensive',
    method: 'get',
    params
  })
}

// 搜索用户
export function searchUsersApi(params) {
  return request({
    url: '/api/search/users',
    method: 'get',
    params
  })
}

// 搜索标签
export function searchTagsApi(params) {
  return request({
    url: '/api/search/tags',
    method: 'get',
    params
  })
}

// 搜索分类
export function searchCategoriesApi(params) {
  return request({
    url: '/api/search/categories',
    method: 'get',
    params
  })
}

// 搜索说说
export function searchMomentsApi(params) {
  return request({
    url: '/api/search/moments',
    method: 'get',
    params
  })
}